package io.bsly.modules.app.pojo;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
@ApiModel
@Data
public class OrderSubmitVo   {

    @NotBlank(message = "orderToken令牌不能为空")
    private String orderToken;

    /**
     * 抖音订单号
     */
    @NotBlank(message = "抖音订单号不能为空")
    private String dyOrderCode;

    /**
     * 抖音核销码
     */
    @NotBlank(message = "抖音核销码不能为空")
    private String dyCouponCode;

    /**
     * 下单用户
     */
    private String username;
    /**
     * 电话
     */
    private String mobile;

    @NotNull(message = "hotelId不能为空")
    private Integer hotelId;

    @NotBlank(message = "hotelName不能为空")
    private String hotelName;

    /**
     * 渠道房型id
     */
    private Integer canalsRoomId;
    /**
     * 物理房型id
     */
//    @NotNull(message = "roomTypeId不能为空")
//    private Integer roomTypeId;

    /**
     * 房型名称
     */
    @NotBlank(message = "roomName不能为空")
    private String roomName;

    /**
     * 含餐情况
     */
    @NotBlank(message = "meal不能为空")
    private String meal;

    /**
     * 星级
     */
    @NotNull(message = "star不能为空")
    private Integer star;

    /**
     * 入住日期
     */
    @NotNull(message = "inDate不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate inDate;

    /**
     * 离店日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "outDate不能为空")
    private LocalDate outDate;

    /**
     * 夜数
     */
    @NotNull(message = "nightCount不能为空")
    private Integer nightCount;

    /**
     * 房间数
     */
    @NotNull(message = "roomCount不能为空")
    private Integer roomCount;

}
